home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-26 | 1.1 KB | 37 lines | [TEXT/MPS ] |
- #-----------------------------------------------------------------------------
- # TclInit.tcl -- Extended Tcl initialization.
- #-----------------------------------------------------------------------------
- # $Id: TclInit.tcl,v 2.8 1993/08/31 23:03:20 markd Exp $
- #-----------------------------------------------------------------------------
-
- #
- # Unknown command trap handler.
- #
- proc unknown {name args} {
- if [auto_load $name] {
- return [uplevel 1 $name $args]
- }
- if {([info proc tclx_unknown2] == "") && ![auto_load tclx_unknown2]} {
- error "can't find tclx_unknown2 on auto_path"
- }
- return [tclx_unknown2 [concat $name $args]]
- }
-
- set auto_index(buildpackageindex) {source [info library]/buildidx.tcl}
-
- # == Put any code you want all Tcl programs to include here. ==
-
- if !$tcl_interactive return
-
- # == Interactive Tcl session initialization ==
-
- if ![info exists tcl_prompt1] {
- set tcl_prompt1 {global argv0; return [file tail $argv0]>}
- }
- if ![info exists tcl_prompt2] {
- set tcl_prompt2 {return =>}
- }
-
- if [file readable ~/.tclrc] {source ~/.tclrc}
-
-